Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/MeshConfigFlowManager.kt bf929c20f274232e0eb8ddc19b2dc82403e99e5b (bf929c20) Text, 1.93 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository

Tff7b72import T7ee787org.meshtastic.proto.DeviceMetadata
Tff7b72import T7ee787org.meshtastic.proto.FileInfo
Tff7b72import T7ee787org.meshtastic.proto.MyNodeInfo
Tff7b72import T7ee787org.meshtastic.proto.NodeInfo

T8b949e/** Interface for managing the configuration flow, including local node info and metadata. */
Tff7b72interface T56d364MeshConfigFlowManager Tb4b4b4{
T8b949e/** Handles received local node information. */
Tff7b72fun Td2a8ffhandleMyInfoTb4b4b4(Te6edf3myInfoTb4b4b4: Te6edf3MyNodeInfoTb4b4b4)

T8b949e/** Handles received local device metadata. */
Tff7b72fun Td2a8ffhandleLocalMetadataTb4b4b4(Te6edf3metadataTb4b4b4: Te6edf3DeviceMetadataTb4b4b4)

T8b949e/** Handles received node information. */
Tff7b72fun Td2a8ffhandleNodeInfoTb4b4b4(Te6edf3infoTb4b4b4: Te6edf3NodeInfoTb4b4b4)

T8b949e/**
* Handles a [FileInfo] packet received during STATE_SEND_FILEMANIFEST.
*
* Each packet describes one file available on the device. Accumulated into [RadioConfigRepository.fileManifestFlow]
* and cleared at the start of each new handshake.
*/
Tff7b72fun Td2a8ffhandleFileInfoTb4b4b4(Te6edf3infoTb4b4b4: Te6edf3FileInfoTb4b4b4)

T8b949e/** Returns the number of nodes received in the current stage. */
Tff7b72val Te6edf3newNodeCountTb4b4b4: Tffa657Int

T8b949e/** Handles the completion of a configuration stage. */
Tff7b72fun Td2a8ffhandleConfigCompleteTb4b4b4(Te6edf3configCompleteIdTb4b4b4: Tffa657IntTb4b4b4)

T8b949e/** Triggers a request for the full device configuration. */
Tff7b72fun Td2a8fftriggerWantConfigTb4b4b4(Tb4b4b4)
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s